/**
 * Created by xiongcheng on 2018/3/1.
 */
import HelloWorld from '@/components/HelloWorld'
import Index  from '../components/Index.vue'

export default [
  {
    path: '/',
    name: 'pageMain',
    meta:{
      global_header:true,
      global_footer:true,
      title:'www'
    },
    component: resolve => require(['../components/PageMain.vue'],resolve),
    children:[
      {path:'/',redirect:{path:'home'}},
      {
        path:'home',
        title:'首页',
        meta:{
          breadcrumb: {
            name: '首页'
          },
          title: '首页',
          global_header: true,
          global_footer: true
        },
        component: resolve => require(['../components/home/PageIndex.vue'],resolve),
      },
      {
        path:'notice',
        meta:{
          breadcrumb: {
            name: '通知公告'
          },
          title: '通知公告',
          global_header: true,
          global_footer: true
        },
        component: resolve => require(['../components/notice/PageIndex.vue'],resolve),
      },
      {
        path:'tax',
        meta:{
          breadcrumb: {
            name: '我要办税'
          },
          title: '我要办税',
          global_header: true,
          global_footer: true
        },
        component: resolve => require(['../components/tax/PageIndex.vue'],resolve),
      },
      {
        path:'guide',
        meta:{
          breadcrumb: {
            name: '向导办税'
          },
          title: '向导办税',
          global_header: true,
          global_footer: true
        },
        component: resolve => require(['../components/guide/PageIndex.vue'],resolve),
      }
    ]
  },
  {
    path: '/lay',
    name: 'lay',
    meta:{
      global_header:true,
      global_footer:true,
      title:'layUI'
    },
    component: resolve => require(['../components/LayIndex.vue'],resolve)
  },
  {
    path: '/bootstrap',
    name: 'bootstrap',
    meta:{
      global_header:true,
      global_footer:true,
      title:'bootstrapUI'
    },
    component: resolve => require(['../components/bootstrap.vue'],resolve)
  },
  {
    path: '/lay_body',
    name: 'pageMain',
    meta:{
      global_header:true,
      global_footer:true,
      title:'laybody'
    },
    component: resolve => require(['../components/LayBody.vue'],resolve)
  },
  {
    path: '/hello',
    name: 'HelloWorld',
    component: HelloWorld
  },
  {
    path: '/index',
    name: 'index',
    component: resolve => require(['../components/Index.vue'],resolve)
  },
  {
    path: '/header',
    name: 'deader',
    component: resolve => require(['../components/common/Header.vue'],resolve)
  },

]
